package com.ht.task;

import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MySpringTask {

	@Scheduled(cron="1/2 * * * * ?")
	public void testSpringTask(){
		System.out.println("MySpringTask===================="+new Date());
	}
	
	
	
}
